import java.awt.Cursor;
import java.awt.Frame;
import java.awt.MenuBar;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;


public class Board extends Frame{
	
	private static final long serialVersionUID = -8513762685417283338L;
	private LineDrawing canvas;
	
	Board(LineDrawing n, MenuBar mb){
		super();
		canvas = n;
		this.setMenuBar(mb);
		this.setCursor(new Cursor(1));
		this.setSize(500, 400);
		this.setLocation(400, 200);
		add(canvas);
		this.setVisible(true);
		
		addWindowListener(new WindowAdapter() {
			public void windowClosing(WindowEvent arg0) {
				System.exit(0);
			}
		});
	}

}
